package com.ebelter.bodyfatscale.moudules.db.beans;

import com.ebelter.bodyfatscale.moudules.db.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

import java.io.Serializable;

@Table(database = AppDatabase.class)
public class HistoryMesureDataAvg extends BaseModel implements Serializable {

    @PrimaryKey(autoincrement = true)//ID自增
    public long id;

    /*用户标识id，必须保证唯一性*/
    @Column
    public long userID;

    /*测量时间*/
    @Column
    public String measureTime;//2019-02-15

    /*体脂率*/
    @Column
    public float fat;
    /*体重*/
    @Column
    public float weight;

    /*肌肉量*/
    @Column
    public float muscleVolume;

    @Override
    public String toString() {
        return "HistoryMesureDataAvg{" +
                "id=" + id +
                ", measureTime='" + measureTime + '\'' +
                ", fat=" + fat +
                ", weight=" + weight +
                ", muscleVolume=" + muscleVolume + '}';
    }
}
